package org.dromara.third.dnnyun.util;

import cn.hutool.crypto.SecureUtil;
import org.dromara.third.dnnyun.domain.comm.CommUrlParam;

public class DySignature {
    public static void signature(CommUrlParam commUrlParam, String apiKey){
        String signStr = apiKey+commUrlParam.getNonce()+commUrlParam.getTimestamp();
        String signature = SecureUtil.sha1(signStr);
        commUrlParam.setSignature(signature);
    }
}
